{include file=$header_start}
{include file=$header_end}
{strip}
<link rel="stylesheet" type="text/css" href="{$siteroot}/templates/default/style/dashboard.css">
{/strip}
{literal}
<script type="text/javascript" language="javascript">
function validateMsg()
{
	if(document.getElementById('subject').value == '')
	{
		document.getElementById('subdiv').innerHTML = "Please enter subject";
		document.getElementById('subject').focus();
		return false;
	}
	else
		document.getElementById('subdiv').innerHTML = "";
		
	if(document.getElementById('message').value == '')
	{
		document.getElementById('msgdiv').innerHTML = "Please enter message";
		document.getElementById('message').focus();
		return false;
	}
	else
		document.getElementById('msgdiv').innerHTML = "";
			
	return true;
}
</script>
{/literal}

<section class="middle_portion">
	<section class="inner_head">Dashboard</section>
    <section class="inner_containstart">
    	<!-- dashboard Left Content Start -->
        	<!-- dashboard Left Content Start -->
        	{include file=$cms_left_content}
        <!-- dashboard Left Content End -->
        <!-- dashboard Right Content Start -->
        	<section class="dash_right">
            	<section class="title_box">
                    <h4>Compose Message</h4>
                   <section class="clear"></section>
                </section>
              <section class="tab_wrapp" id="tabs">
                            <section class="tab_nav">
                                <ul>
                                    <li><a href="{$siteroot}/myaccount/mymessages/">Inbox</a></li>
                                    <li><a href="{$siteroot}/myaccount/mysentmessages/">Sent Item</a></li>
                                    <li><a href="{$siteroot}/myaccount/message_reply/" class="active">Compose</a></li>
                                    <section class="clear"></section>
                                </ul>                                
                            </section>
                             <form name="frmReply" id="frmReply" method="post" onsubmit="return validateMsg();">
                            <section class="tab_des_wrapp" id="compose">
                            	<section class="compose_box">
                           		<ul>
                            	<!--<li>
                                	<label>Select :</label>
                                    <select><option>Teacher</option></select>
                                 </li>-->
                                 <li>
                                	<label>From :</label>
                                   <input type="text" name="fromname" id="fromname" value="{$userDetArr.first_name} {$userDetArr.last_name}" readonly="readonly">
                                 </li>
                                 <li>
                                	<label>To :</label>
                                   <input type="text" name="toname" id="toname" value="Administrator" readonly="readonly"><!--{$adminDetArr.first_name} {$adminDetArr.last_name}-->
                                 </li>
                                 <li>
                                	<label>Subject :</label>
                                    <input type="text" name="subject" id="subject" {if $getmessagedetail.subject neq ''} value="Reply: {$getmessagedetail.subject}" {/if}>							     <section class="clear"></section>
                                     <div style="margin-left:230px;"  class="error" id="subdiv"></div>
                                 </li>
                                 <li>
                                	<label>Message :</label>
                                    <textarea name="message" id="message" style="margin-bottom:5px;overflow: auto;resize:none;"></textarea> 
                                     <section class="clear"></section>
                            
                                    <div  style="margin-left:230px; margin-bottom:10px;" class="error" id="msgdiv"></div>
                                    <section class="clear"></section>
                                    
                                 </li>
                            </ul>
                            </section>
                            <section class="bt_save_wrapp">
                            <input type="submit" name="submit" value="Send" class="bt_save">
                            <input type="button" value="Cancel" onclick="window.location='{$siteroot}/myaccount/mymessages';" class="bt_save" >
                            </section>
                            
                           </section>
                            </form>
            			</section>
            </section>
        <!-- dashboard Right Content End -->
        	<section class="clear"></section>
    </section>
</section>


{include file=$footer}